package top.canyue.eca_manager.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import org.springframework.data.annotation.Transient;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ConferenceDetail {
    @NonNull
    private String id;
    @NonNull
    private String conferenceId;
    @NonNull
    private String userId;
    private int sad;
    private int angry;
    private int surprise;
    private int fear;
    private int happy;
    private int disgust;
    private int neutral;
    @NonNull
    private Timestamp createTime;
    private Timestamp updateTime;
    @NonNull
    private boolean isDelete;

    @Transient
    private Integer offset;
    @Transient
    private Integer fetchSize;
    @Transient
    private String orders;

    @Override
    public String toString() {
        return "{" +
                "id:'" + id + '\'' +
                ", conferenceId:'" + conferenceId + '\'' +
                ", userId:'" + userId + '\'' +
                ", sad:" + sad +
                ", angry:" + angry +
                ", surprise:" + surprise +
                ", fear:" + fear +
                ", happy:" + happy +
                ", disgust:" + disgust +
                ", neutral:" + neutral +
                ", createTime:'" + createTime + '\'' +
                ", updateTime:'" + updateTime + '\'' +
                ", isDelete:" + isDelete +
                '}';
    }

}
